const http = uni.$u.http

// 获取最新课程
export const getMostNew = (data) => http.post('/course/mostNew', data)
// 查询最热课程
export const getMostHot = (data) => http.post('/course/mostHeat', data)
// 查询课程
export const getCourse = (data) => http.post('/course/search',data)
// 免费课程
export const getFreeCourse = (data) => http.post('/course/search',data)
// 获取一级类目
export const getFirstTypes = (data) => http.get('/course/category/getFirstCategorys',{params:data})
// 获取二级类目
export const getSecondCategorys = (data) => http.get('/course/category/getSecondCategorys',{params:data})
// 获取课程详情
export const getCourseDetail = (data) => http.get('/course/getDetail',{params:data})